package com.bolun998300.personal_blog_springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

import com.bolun998300.personal_blog_springboot.Utils.PortUtil;

@SpringBootApplication
@EnableElasticsearchRepositories(basePackages = "com.bolun998300.personal_blog_springboot.es")
@EnableJpaRepositories(basePackages = {"com.bolun998300.personal_blog_springboot.dao", "com.bolun998300.personal_blog_springboot.pojo"})
public class Application {

	static {
//        PortUtil.checkPort(6379,"Redis 服务端",true);
 		  PortUtil.checkPort(9300,"ElasticSearch 服务端",true);
//        PortUtil.checkPort(5601,"Kibana 工具", true);
    }
	
	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}

}
